

#ifndef _SHELL_RESWULINFIGHT2_MESSAGE_H_
#define _SHELL_RESWULINFIGHT2_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include <vector>
//#include "WulinFightPair.h"
using namespace std;

class ResWulinFight2Message : public Message
{
	public:
	ResWulinFight2Message();
	~ResWulinFight2Message();
	void reset();
	ResWulinFight2Message* clone();
	static const int _ID;
	//第一轮 1/8决赛 (共8对)
	vector<WulinFightPair*> round1;
	//第二轮 1/4决赛 (共4对)
	vector<WulinFightPair*> round2;
	//第三轮 半决赛 (共2对)
	vector<WulinFightPair*> round3;
	//三四名赛
	vector<WulinFightPair*> round4;
	//决赛
	vector<WulinFightPair*> round5;
	//0:正常取数据  1:淘汰赛未开启
	int32 state;
	//0:可鼓励  1:已经鼓励过不可鼓励
	int32 encourage;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
